package day01;

import java.util.Scanner;

/**
 * 要求用户从控制台输入一个email地址，然后获取该email的用户名(@之前的内容)
 * @author Bonnie
 *
 */
public class Test04 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		StringBuilder str = new StringBuilder(input.next());
		int index = str.indexOf("@");
		String username = str.substring(0, index);

		System.out.println("用户名为：" + username);
		input.close();
	}
}
